package com.gibs.peixunapi.service;

import com.gibs.peixunapi.VO.StudyRecordVO;
import com.gibs.peixunapi.model.StudyProgress;
import com.gibs.peixunapi.result.Result;

import javax.validation.Valid;
import java.util.List;

public interface StudyProgressService {

    Result create(@Valid StudyProgress object);

    Result save(@Valid StudyProgress object);

    Result delete(Integer id);

    Result get(Integer id);

    Result getList(String key);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);


    /**
     * 保存学生的学习进度信息 ,判断章节类型后选择不同的进度计算方法
     *  @param studentId    学生id
     * @param recordVOList 章节练习题VO
     * @return
     */
    Result saveProgress(Integer studentId, List<StudyRecordVO> recordVOList);

    Result getVideoClassProgress(Integer studentId, Integer videoClassId);
}

